/* ==================
        初始化
 ==================== */
/* #ifndef APP-PLUS-NVUE */
view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
  box-sizing: border-box;
}
input {
  font-size: 1em;
  min-height: 1em;
}
view::-webkit-scrollbar {
  display: none; /* 不显示滚动条 */
}
.topPlace {
  //app状态栏高度
  width: 100%;
  height: var(--status-bar-height);
  background: transparent;
}

.image_bg {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
}

.dn {
  display: none;
}
.di {
  display: inline;
}
.db {
  display: block;
}
.dib {
  display: inline-block;
}
.dt {
  display: table;
}

/* 外边距 */
.mauto-x {
  margin: 0 auto;
}
/*浮动与清除浮动*/
.fl {
  float: left;
}
.fr {
  float: right;
}
.vm {
  vertical-align: middle;
}

.vm {
  vertical-align: middle;
}
.vib {
  display: inline-block;
  vertical-align: middle;
}

//导航栏高度
.pageTit {
  height: var(--window-top);
}

@for $i from 1 through 5 {
  .truncate-#{$i} {
    /* #ifdef APP-NVUE */
    // nvue下，可以直接使用lines属性，这是weex特有样式
    lines: $i;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
    /* #endif */

    /* #ifndef APP-NVUE */
    // vue下，单行和多行显示省略号需要单独处理
    @if $i == '1' {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    } @else {
      display: -webkit-box !important;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
      -webkit-line-clamp: $i;
      -webkit-box-orient: vertical !important;
    }
    /* #endif */
  }
}

/* 文本样式 */
.td-s {
  text-decoration: blink;
} //闪烁
.td-n {
  text-decoration: none;
} //无装饰，通常对html下划线标签去掉下划线样式
.td-c {
  text-decoration: line-through;
} //删除线样式-贯穿线样式
.td-b {
  text-decoration: underline;
} //下划线样式
.td-t {
  text-decoration: overline;
} //上划线样式
/* #endif */

/*定位*/
.pr,
.relative {
  position: relative;
}
.pa,
.absolute {
  position: absolute;
}
.pf,
.fixed {
  position: fixed;
}

/* 文字对齐*/
.tl {
  text-align: left;
}
.tc {
  text-align: center;
}
.tr {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/*显示*/

.flex {
  /* #ifndef APP-NVUE */
  display: flex;
  /* #endif */
  flex-direction: row;
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.col-center {
  align-items: center;
}
.col-top {
  align-items: flex-start;
}
.col-bottom {
  align-items: flex-end;
}
.row-center {
  justify-content: center;
}
.row-left {
  justify-content: flex-start;
}
.row-right {
  justify-content: flex-end;
}
.row-between {
  justify-content: space-between;
}
.row-around {
  justify-content: space-around;
}
.flex-col {
  /* #ifndef APP-NVUE */
  display: flex;
  /* #endif */
  flex-direction: column;
}
/* flex */
.flex1 {
  flex: 1;
}
.flex2 {
  flex: 2;
}
.flex3 {
  flex: 3;
}
.flex4 {
  flex: 4;
}
.flex5 {
  flex: 5;
}
/* flex */
//flex 布局 剩余占满

@for $i from 0 to 101 {
  .z-index#{$i} {
    z-index: $i;
  }
  .fs#{$i} {
    font-size: $i + rpx;
  }
  .radius#{$i} {
    border-radius: $i + rpx;
  }
  .top#{$i} {
    top: $i + rpx;
  }
  .left#{$i} {
    left: $i + rpx;
  }
  .right#{$i} {
    right: $i + rpx;
  }
  .bottom#{$i} {
    bottom: $i + rpx;
  }
  .w#{$i}p {
    width: 1% * $i;
  }
  .h#{$i}p {
    height: 1% * $i;
  }
}
.radius {
  border-radius: 50%;
}
.radius-t0 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.radius-b0 {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.radius-l0 {
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}
.radius-r0 {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
@for $i from 0 through 751 {
  @if $i % 2 == 0 or $i % 5 == 0 {
    // 定义width
    // 定义height
    .w#{$i} {
      width: $i + rpx;
    }
    // 得出：u-margin-30或者u-m-30
    .m#{$i} {
      margin: $i + rpx;
    }
    .ml#{$i} {
      margin-left: $i + rpx;
    }
    .mr#{$i} {
      margin-right: $i + rpx;
    }
    .mt#{$i} {
      margin-top: $i + rpx;
    }
    .mb#{$i} {
      margin-bottom: $i + rpx;
    }
    // 得出：u-padding-30或者u-p-30
    .p#{$i} {
      padding: $i + rpx;
    }
    .pl#{$i} {
      padding-left: $i + rpx;
    }
    .pr#{$i} {
      padding-right: $i + rpx;
    }
    .pt#{$i} {
      padding-top: $i + rpx;
    }

    .pb#{$i} {
      padding-bottom: $i + rpx;
    }

    .px#{$i} {
      padding-left: $i + rpx;
      padding-right: $i + rpx;
    }
    .py#{$i} {
      padding-bottom: $i + rpx;
      padding-top: $i + rpx;
    }
    .mx#{$i} {
      margin-left: $i + rpx;
      margin-right: $i + rpx;
    }
    .my#{$i} {
      margin-bottom: $i + rpx;
      margin-top: $i + rpx;
    }
  }
}
// 定义height
@for $i from 0 through 1001 {
  @if $i % 2 == 0 or $i % 5 == 0 {
    .h#{$i} {
      height: $i + rpx;
    }
  }
}

/* 清除 */
.p0 {
  padding: 0;
}
.pl0 {
  padding-left: 0;
}
.pr0 {
  padding-right: 0;
}
.pt0 {
  padding-top: 0;
}
.pb0 {
  padding-bottom: 0;
}

/*字体粗细*/
.fw-400 {
  font-weight: 400;
}
.fw-500 {
  font-weight: 500;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.fw-800 {
  font-weight: 800;
}
.fw-900 {
  font-weight: 900;
}
.fw-w {
  font-weight: bold;
}
//行高
.lh1 {
  line-height: 1;
}
.lh15 {
  line-height: 1.5;
}
.lh2 {
  line-height: 2;
}
/*字体颜色*/
.color-000 {
  color: #000000;
}
.color-111 {
  color: #111111;
}
.color-222 {
  color: #222222;
}
.color-333 {
  color: #333333;
}
.color-666 {
  color: #666666;
}
.color-999 {
  color: #999999;
}
.color-aaa {
  color: #aaaaaa;
}
.color-bbb {
  color: #bbbbbb;
}
.color-ccc {
  color: #cccccc;
}
.color-ddd {
  color: #dddddd;
}
.color-eee {
  color: #eeeeee;
}
.color-fff {
  color: #ffffff;
}
.color-ada {
  color: #adadad;
}
.color-ye {
  color: yellow;
}
.color-or {
  color: orange;
}
.color-red {
  color: red;
}
.color-green {
  color: green;
}
.color-blue {
  color: blue;
}
.color-ffb104 {
  color: #ffb104;
}
.color-price {
  color: #ed2c2c;
}
.color-ffe0af {
  color: #ffe0af;
}
.color-6e6d73 {
  color: #6e6d73;
}
.color-707 {
  color: #707070;
}
.color-ff5252 {
  color: #ff5252;
}

/*背景颜色*/
.bg-000 {
  background-color: #000000;
}
.bg-111 {
  background-color: #111111;
}
.bg-222 {
  background-color: #222222;
}
.bg-333 {
  background-color: #333333;
}
.bg-444 {
  background-color: #444444;
}
.bg-555 {
  background-color: #555555;
}
.bg-666 {
  background-color: #666666;
}
.bg-777 {
  background-color: #777777;
}
.bg-888 {
  background-color: #888888;
}
.bg-999 {
  background-color: #999999;
}
.bg-aaa {
  background-color: #aaaaaa;
}
.bg-bbb {
  background-color: #bbbbbb;
}
.bg-ccc {
  background-color: #cccccc;
}
.bg-ddd {
  background-color: #dddddd;
}
.bg-eee {
  background-color: #eeeeee;
}
.bg-fff {
  background-color: #ffffff;
}
.bg-f7f {
  background-color: #f7f7f7;
}
.bg-f8f {
  background-color: #f8f8f8;
}
.bg-f5f {
  background-color: #f5f5f5;
}
.bg-f0f {
  background-color: #f0f0f0;
}
.bg-faf {
  background-color: #fafafa;
}
.bg-red {
  background-color: red;
}
.bg-green {
  background-color: green;
}
.bg-blue {
  background-color: blue;
}
.bg-f3f5fb {
  background-color: #f3f5fb;
}
.bg-f7f {
  background-color: #f7f7f7;
}
.bg-1d1818 {
  background-color: #1d1818;
}
.bg-f0f {
  background-color: #f0f0f0;
}
.bg-f3f {
  background-color: #f3f3f3;
}
.bg-f9f {
  background-color: #f9f9f9;
}
.bg-fffbf2 {
  background-color: #fffbf2;
}
.bg-ebe {
  background-color: #ebebeb;
}
.bg-e7e {
  background-color: #e7e7e7;
}

.ov-h {
  overflow: hidden;
}
/*透明*/
.opa10 {
  opacity: 1;
}
.opa9 {
  opacity: 0.9;
}
.opa8 {
  opacity: 0.8;
}
.opa7 {
  opacity: 0.7;
}
.opa6 {
  opacity: 0.6;
}
.opa5 {
  opacity: 0.5;
}
.opa4 {
  opacity: 0.4;
}
.opa3 {
  opacity: 0.3;
}
.opa2 {
  opacity: 0.2;
}
.opa1 {
  opacity: 0.1;
}
.opa0 {
  opacity: 0;
}

/* 边框 */
.border {
  border: solid 1px #e7e7e7;
}
.border-red {
  border: solid 1px #ff2736;
}
.border-t {
  border-top: solid 1px #e7e7e7;
}
.border-r {
  border-right: solid 1px #e7e7e7;
}
.border-b {
  border-bottom: solid 1px #e7e7e7;
}
.border-l {
  border-left: solid 1px #e7e7e7;
}

/* 宽 */
.w-max {
  width: 100%;
}
.h-max {
  height: 100%;
}

.z-max {
  z-index: 999;
}
/* #ifndef APP-PLUS-NVUE */
.als-s {
  align-self: stretch;
}
.wh-max {
  width: 100%;
  height: 100%;
}
.border-t0 {
  border-top-style: none;
}
.border-r0 {
  border-right-style: none;
}
.border-b0 {
  border-bottom-style: none;
}
.border-l0 {
  border-left-style: none;
}

.pe-none {
  pointer-events: none;
}
.nowrap {
  white-space: nowrap;
} //不换行
.popup {
	::v-deep {
		.u-mode-center-box {
			background-color: transparent !important;
		}
		.u-drawer-content.u-drawer-bottom {
			background-color: transparent !important;
		}
	}
}
/* #endif */
/* 其他 */
.scale7 {
  transform: scale(0.7);
}

.theme-price {
  color:#FD4834;
}
.theme-color {
  color:#0089ff;
}
.theme-bg-color {
  background-color: #0089ff;;
}

.input-select {
	pointer-events: none;
}
